home *** CD-ROM | disk | FTP | other *** search
/ Stunning Games / Stunning Games volume 1.iso / titles / descent / play$.bat < prev    next >
DOS Batch File  |  1995-03-08  |  2KB  |  78 lines

  1. @Echo Off
  2. set x=x
  3. Echo Copying Files To Temporary Directory On Harddisk.......
  4. if not exist c:\$temp\*.* goto make
  5. goto exs
  6. :make
  7. set x=ZAP
  8. md c:\$temp >nul
  9. :exs
  10. xcopy . c:\$temp >nul
  11. :handler
  12. If errorlevel 0 goto run
  13. if errorlevel 1 goto nocd
  14. if errorlevel 2 goto break
  15. if errorlevel 4 goto nomem
  16. if errorlevel 5 goto diskerr
  17. Echo An Unknown Error Occured......
  18. goto delfile
  19. :break
  20. Echo You Pressed CTRL+BREAK........
  21. Echo Aborting......
  22. goto delfile
  23. :nomem
  24. Echo An Initialization Error Occured;
  25. Echo There is not Enough Free Memory or Disk Space to Complete The Operation
  26. goto delfile
  27. :nocd
  28. Echo The (Source) Files Could not Be Found!
  29. Echo Aborting.......
  30. goto delfile
  31. :diskerr
  32. Echo A Disk Write Error Occured......
  33. Echo There Is Not Enough Disk Space......
  34. Goto delfile
  35. :run
  36. c:
  37. cd\$temp
  38. attrib -R *.* >nul
  39. Echo Starting Program.......
  40. setup
  41. descent
  42. Echo Deleting Temporary Files..........
  43. :delfile
  44. c:
  45. cd\$temp
  46. attrib -R *.* /s >nul
  47. del DESCENT.B50  >nul
  48. del DESCENT.EXE  >nul
  49. del DESCENT.HOG  >nul
  50. del DESCENT.M50  >nul
  51. del DESCENT.PHX  >nul
  52. del DESCENT.PIG  >nul
  53. del DESCENT2.ADV >nul
  54. del DESCENTG.INI >nul
  55. del FILE_ID.DIZ  >nul
  56. del HMIDET.386   >nul
  57. del HMIDRV.386   >nul
  58. del HMIMDRV.386  >nul
  59. del ORDERFRM.TXT >nul
  60. del README.TXT   >nul
  61. del REFCARD.PCX  >nul
  62. del REFCARD.TXT  >nul
  63. del SETUP.EXE    >nul
  64. del PLAY$.BAT    >nul
  65.  
  66. Echo Temporary Files Removed
  67. cd..
  68. if "%x%"=="ZAP" goto ZAP
  69. Echo Your $TEMP Directory already existed, and was not empty.
  70. Echo $TEMP NOT Deleted
  71. goto out
  72. :zap
  73. echo y|del c:\$temp\. >nul
  74. rd c:\$temp >nul
  75. :out
  76. %cdrom%:
  77. cd\
  78.